# !/usr/bin/env python
# coding=utf-8
# @Time    : 2018/7/19 10:31
# @Author  : 6imensiva
# @Site    : https://gitee.com/dimensiva/rpc_dao.git
# @File    : insurance_types_list.py
# @Software: PyCharm
# @Version: 2.7.5
from . import Session
from db.models import TInsuranceTypeList


def get_tpic_map():
	session = Session()
	return session.query(TInsuranceTypeList).filter(TInsuranceTypeList.insuranceCode=='TPIC').all()


def get_clpc_map():
	session = Session()
	return session.query(TInsuranceTypeList).filter(TInsuranceTypeList.insuranceCode=='CLPC').all()


def get_taic_map():
	session = Session()
	return session.query(TInsuranceTypeList).filter(TInsuranceTypeList.insuranceCode=='TAIC').all()